package com.fucking.great.context.config;

import com.fucking.great.context.plun.Plug;
import com.fucking.great.context.plun.PlugFactory;

import java.util.Collection;
import java.util.Map;

public abstract class AbstractTxnConfigerDecorator implements TxnConfiger {
    private TxnConfiger txnConfiger;

    public AbstractTxnConfigerDecorator(TxnConfiger txnConfiger) {
        this.txnConfiger = txnConfiger;
    }

    public final TxnConfiger getTxnConfiger() {
        return txnConfiger;
    }

    @Override
    public PathConfigBean getPathConfigBean(String path) {
        return txnConfiger.getPathConfigBean(path);
    }

    @Override
    public SystemConfigBean getSystemConfigBean(String systemName) {
        return txnConfiger.getSystemConfigBean(systemName);
    }

    @Override
    public Plug getPlug(String name, String systemName) {
        return txnConfiger.getPlug(name, systemName);
    }

    @Override
    public Collection<PlugFactory> getAllPlugFactory() {
        return txnConfiger.getAllPlugFactory();
    }

    @Override
    public String[] getAllSystemName() {
        return txnConfiger.getAllSystemName();
    }
}
